<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class book extends Model
{
    public $timestamps=false;

    public function myrecord()
    {
        return $this->belongsToMany('App\Model\readuser');
    }
    public function mywriter()
    {
        return $this->hasOne('App\Model\writer','id','wid');
    }
}
